﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EntityFramework.Translator
{
    public class AuthorityLeveltranslator
    {
        //To Translate AuthorityLevelDataEntity to AuthorityLevelBusinessEntity
        public static BLL.AuthorityLevel TranslatetoAuthorityLevelBE(EntityFramework.AuthorityLevel authoritylevelDE)
        {
            BLL.AuthorityLevel authoritylevelBE = new BLL.AuthorityLevel();
            authoritylevelBE.LevelId = authoritylevelDE.LevelId;
            authoritylevelBE.LevelName = authoritylevelDE.LevelName;
            return authoritylevelBE;
        }

        //To Translate AuthorityBusinessEntity to AuthorityDataEntity
        public static EntityFramework.AuthorityLevel TranslatetoAuthorityLevelDE(BLL.AuthorityLevel authoritylevelBE)
        {
            EntityFramework.AuthorityLevel authoritylevelDE = new EntityFramework.AuthorityLevel();
            authoritylevelDE.LevelId = authoritylevelBE.LevelId;
            authoritylevelDE.LevelName = authoritylevelBE.LevelName;
            return authoritylevelDE;
        }
    }
}
